﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SKingCityBossMsg extends IMessageBase
    {
        public var leftSeconds:int;
        public var scores:Array;
        public var myRank:int;
        public var BossGold:int;
        public var gold:int;
        public const _type:int = 254;
        public static var _regist:SKingCityBossMsg = new SKingCityBossMsg(true);

        public function SKingCityBossMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SKingCityBossMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.leftSeconds);
            SeqSKingCityBossPlayerScoreHelper.write(param1, this.scores);
            param1.writeInt(this.myRank);
            param1.writeInt(this.BossGold);
            param1.writeInt(this.gold);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.leftSeconds = param1.readInt();
            this.scores = SeqSKingCityBossPlayerScoreHelper.read(param1);
            this.myRank = param1.readInt();
            this.BossGold = param1.readInt();
            this.gold = param1.readInt();
            return;
        }// end function

    }
}
